package ko;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.Paint;
import android.graphics.Point;
import android.graphics.Rect;

public class K {
	public static final String VERSION = "0.1";
	public static int W = 0;
	public static int H = 0;
	public static float SysW = 0;
	public static float SysH = 0;
	public static float SysRW = 0;
	public static float SysRH = 0;
	public static Rect rect;
	public static Point point;
	
	public static float FrameRate;
	public static int BackColor;
	public static float elapsed;
	
	public static long _time = 0;
	public static float _timeFrame;
    public static long _flashTime;
	
    public static KEngine engine;
	public static KGame game;
	public static StageView stage;
	public static Canvas view;
	public static Bitmap bitmap;
	public static Canvas render;
	public static Matrix matrix;
	public static Context context;
	public static Paint paint = new Paint();
	
	public static Point zero = new Point(0,0);
	
//    public static var matrix:Matrix = new Matrix();
//    public static var sprite:Sprite = new Sprite();
//    public static var entity:KEntity;
	
	public static float randomF(){
		return (float)Math.random();
	}
	
	// Used for rad-to-deg and deg-to-rad conversion.
	/** @private */ public static final float DEG = (float)(-180 / Math.PI);
	/** @private */ public static final float RAD = (float)(Math.PI / -180);
	
	/** @private */ public static final float MPI180 = (float) (Math.PI / 180);
	/** @private */ public static final float M180PI = (float) (180 / Math.PI);
	
	public static int randomInt(int value) {
		return (int) Math.floor(Math.random() * (value + 0.99999));
	}
	
	public static double  random()
	{
		return Math.random();
		//var _seed:Number = (_timeFrame * 16807) % int.MAX_VALUE;
		//return _seed / int.MAX_VALUE;
	}
}
